package com.javalab._5often_class;

/**
 * 字符串类的使用
 */
public class StringTest {
    public static void main(String[] args) {
        String string1 = "1";
        String string2 = new String("2");

        string1.isEmpty();
        string1.substring(1);
        string1.substring(2,3);
        string1.length();
        string1.contains("1");
        string1.startsWith("1");
    }
}
